package com.groupThree.bean;

import java.sql.Timestamp;

public class Courier {
    //编号
    private int c_id;
    //姓名
    private String c_name;
    //电话号码
    private String c_phone;
    //身份证号
    private String c_idcard;
    //密码
    private String c_password;
    //派件数
    private int c_deliveries;
    //注册时间
    private Timestamp registertime;
    //登陆时间
    private Timestamp logintime;


    public Courier() {
    }

    public Courier(int c_id, String c_name, String c_phone, String c_idcard, String c_password, int c_deliveries, Timestamp registertime, Timestamp logintime) {
        this.c_id = c_id;
        this.c_name = c_name;
        this.c_phone = c_phone;
        this.c_idcard = c_idcard;
        this.c_password = c_password;
        this.c_deliveries = c_deliveries;
        this.registertime = registertime;
        this.logintime = logintime;
    }

    public int getC_id() {
        return c_id;
    }

    public void setC_id(int c_id) {
        this.c_id = c_id;
    }

    public String getC_name() {
        return c_name;
    }

    public void setC_name(String c_name) {
        this.c_name = c_name;
    }

    public String getC_phone() {
        return c_phone;
    }

    public void setC_phone(String c_phone) {
        this.c_phone = c_phone;
    }

    public String getC_idcard() {
        return c_idcard;
    }

    public void setC_idcard(String c_idcard) {
        this.c_idcard = c_idcard;
    }

    public String getC_password() {
        return c_password;
    }

    public void setC_password(String c_password) {
        this.c_password = c_password;
    }

    public int getC_deliveries() {
        return c_deliveries;
    }

    public void setC_deliveries(int c_deliveries) {
        this.c_deliveries = c_deliveries;
    }

    public Timestamp getRegistertime() {
        return registertime;
    }

    public void setRegistertime(Timestamp registertime) {
        this.registertime = registertime;
    }

    public Timestamp getLogintime() {
        return logintime;
    }

    public void setLogintime(Timestamp logintime) {
        this.logintime = logintime;
    }

    public Courier(String c_name, String c_phone, String c_idcard, String c_password, Timestamp registertime) {
        this.c_name = c_name;
        this.c_phone = c_phone;
        this.c_idcard = c_idcard;
        this.c_password = c_password;
        this.registertime = registertime;
    }

    public Courier(String c_name, String c_phone, String c_idcard, String c_password) {
        this.c_name = c_name;
        this.c_phone = c_phone;
        this.c_idcard = c_idcard;
        this.c_password = c_password;
    }

    @Override
    public String toString() {
        return "Coutier{" +
                "c_id=" + c_id +
                ", c_name='" + c_name + '\'' +
                ", c_phone='" + c_phone + '\'' +
                ", c_idcard='" + c_idcard + '\'' +
                ", c_password='" + c_password + '\'' +
                ", c_deliveries=" + c_deliveries +
                ", registertime=" + registertime +
                ", logintime=" + logintime +
                '}';
    }
}
